@import url(https://fonts.googleapis.com/css?family=Open+Sans:400);
.frame {
  position: absolute;
  width: 400px;
  height: 400px;
  inset: 0;
  margin: auto;
  box-shadow: 1px 2px 10px rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  background-color: #2b3642;
  overflow: hidden;
  font-family: "Open Sans" Arial, Helvetica, sans-serif;
}

.center {
  position: absolute;
  width: 320px;
  height: 240px;
  overflow: hidden;
  inset: 0;
  margin: auto;
  box-shadow: 4px 8px 12px rgba(0, 0, 0, 0.3);
  background-color: #fff;
}
.center .top {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background-color: #3d4d5e;
}
.center input[type=radio] {
  display: none;
}
.center .tab {
  position: relative;
  float: left;
  z-index: 5;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 38px;
  color: #8398ad;
  cursor: pointer;
  font-size: 14px;
  background: inherit;
  transition: background 0.3s ease-in-out;
}
.center .tab.search {
  float: right;
}
.center .tab:hover {
  background: #fff;
}
.center input[type=radio]:checked + .tab {
  background: #5da2ed;
  color: #fff;
}
.center .content {
  position: absolute;
  top: 40px;
  color: #000;
}
.center .content .box {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(3px);
  pointer-events: none;
  padding: 25px;
  transition: all 0.3s ease-in;
}
.center .content .box h1 {
  font-weight: 400;
  font-size: 16px;
  color: #415868;
  margin: 0;
  padding: 0;
}
.center .content .box p {
  margin: 17px 0;
}
.center .content .box p span {
  display: block;
  height: 4px;
  background: #e9e9e9;
  margin: 6px 0;
}

#tab-1:checked ~ .content #box-1 {
  pointer-events: all;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease-out 0.4s;
}

#tab-2:checked ~ .content #box-2 {
  pointer-events: all;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease-out 0.4s;
}

#tab-3:checked ~ .content #box-3 {
  pointer-events: all;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease-out 0.4s;
}

#tab-4:checked ~ .content #box-4 {
  pointer-events: all;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease-out 0.4s;
}